package com.kob.backend.service.impl.product;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.kob.backend.mapper.ProductMapper;
import com.kob.backend.service.product.ProductDeleteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductDeleteServiceImpl implements ProductDeleteService {
    @Autowired
    private ProductMapper productMapper;
    @Override
    public void deleteproduct(Integer id) {
        QueryWrapper queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("id",id);
        productMapper.delete(queryWrapper);
    }
}
